package pojo;

import java.util.Date;
import java.util.List;

public class User {
    private Integer userId;

    private String userName;

    private String userMail;

    private String userPassword;

    private Integer userRoleId;

    private String userHeadImage;

    private String userSign;

    private Integer userSex;

    private String userCity;

    private Role Role;

    private Date userRegisterDate;

    private Integer userStatus;

    private List<Article> userArticles;

    private Integer userReplyTimes;

    private List<Menu> menus;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserMail() {
        return userMail;
    }

    public void setUserMail(String userMail) {
        this.userMail = userMail == null ? null : userMail.trim();
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword == null ? null : userPassword.trim();
    }

    public Integer getUserRoleId() {
        return userRoleId;
    }

    public void setUserRoleId(Integer userRoleId) {
        this.userRoleId = userRoleId;
    }

    public String getUserHeadImage() {
        return userHeadImage;
    }

    public void setUserHeadImage(String userHeadImage) {
        this.userHeadImage = userHeadImage == null ? null : userHeadImage.trim();
    }

    public String getUserSign() {
        return userSign;
    }

    public void setUserSign(String userSign) {
        this.userSign = userSign;
    }

    public Integer getUserSex() {
        return userSex;
    }

    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

    public String getUserCity() {
        return userCity;
    }

    public void setUserCity(String userCity) {
        this.userCity = userCity;
    }

    public Role getRole() {
        return Role;
    }

    public void setRole(Role role) {
        Role = role;
    }

    public Date getUserRegisterDate() {
        return userRegisterDate;
    }

    public void setUserRegisterDate(Date userRegisterDate) {
        this.userRegisterDate = userRegisterDate;
    }

    public List<Article> getUserArticles() {
        return userArticles;
    }

    public void setUserArticles(List<Article> userArticles) {
        this.userArticles = userArticles;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public Integer getUserReplyTimes() {
        return userReplyTimes;
    }

    public void setUserReplyTimes(Integer userReplyTimes) {
        this.userReplyTimes = userReplyTimes;
    }

    public List<Menu> getMenus() {
        return menus;
    }

    public void setMenus(List<Menu> menus) {
        this.menus = menus;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userMail='" + userMail + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userRoleId=" + userRoleId +
                ", userHeadImage='" + userHeadImage + '\'' +
                ", userSign='" + userSign + '\'' +
                ", userSex=" + userSex +
                ", userCity='" + userCity + '\'' +
                ", Role=" + Role +
                '}';
    }
}